<%-- 
    Document   : signUp
    Created on : Mar 27, 2012, 10:14:43 AM
    Author     : inahbanana
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.security.MessageDigest"%>
<%@page import="java.sql.*, DBConnection.*, UserPackage.*, servlet.*" %>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel = "stylesheet" href= "css/signup.css" type="text/css"/>
        <link rel =" stylesheet" href="css/format.css" type="text/css"/>
        <link rel =" stylesheet" href="css/menu.css" type="text/css"/>

        <title>Sign UP</title>
        <script type ="text/javascript" src="js/signUpValidation.js"></script>


    </head>
    <body>

        <div class="wrapper">
            <div id="titlebar">


                <form class="form">
                    username: <input type="text" name="username">
                    password: <input type="password" name="password">

                    <input type="submit" name="submit"/>
                </form>
            </div>

            <center><div id="tabs24">   
                    <ul>          
                        <li><a href="aboutusPage.jsp" >About Us</a></li>
                        <li><a href="home.jsp" >Home</a></li>
                        <li><a href="bookPage.jsp" >Books</a></li>
                        <li><a href="magPage.jsp" >Magazines</a></li>
                        <li><a href="audioPage.jsp" >Audio CDs</a></li>
                        <li><a href="dvdPage.jsp" >DVDs</a></li>
                    </ul>   
                </div></center>

            <div id="main">

                <center><div id="signupContainer">
                        <center><h2>REGISTER</h2></center>
                    <form name ="signUpForm" method ="post" action="register" class="signUpForm">
                        email: <input name="email"/><br>
                        <span id="emailError" class="errorMessage"></span><br>

                        username: <input name="username"/><br>
                        <span id="usernameError" class="errorMessage"></span><br>

                        Password: <input  type ="password" name ="password"><br>
                        <span id="passwordError" class="errorMessage"></span><br>

                        Re-type password: <input type="password" name ="retype"><br>
                        <span id="retypepassError" class="errorMessage"></span><br>

                        first name: <input name="fName"/><br>
                        <span id="firstnameError" class="errorMessage"></span><br>

                        middle name: <input name="mName"/><br>
                        <span id="middlenameError" class="errorMessage"></span><br>

                        last name: <input name="lName"/><br>
                        <span id="lastnameError" class="errorMessage"></span><br> 


                        <input type="submit" name="submit" value ="Register" onclick="return signupValidator(this.form)"/>
                    </form>
                    </div></center>
                    
            </div>
        </div>   

    <center><div id="footer">
            <a style=" margin-right: 20px; font-family: arial;float: right; color:white"href="adminIndex.jsp">Login as Admin</a>

        </div></center>



</body>
</html>
